Belgelerim/ceng_491/implementation/doxygen/TraffEdu_Developers_Manual_Reference_ToSource/TraffEduView.cpp

Go to the documentation of this file.
00001 // TraffEduView.cpp : implementation of the CTraffEduView class
00002 //
00003 
00004 #include "stdafx.h"
00005 #include "TraffEdu.h"
00006 
00007 #include "TraffEduDoc.h"
00008 #include "TraffEduView.h"
00009 
00010 #ifdef _DEBUG
00011 #define new DEBUG_NEW
00012 #endif
00013 
00014 
00015 // CTraffEduView
00016 
00017 IMPLEMENT_DYNCREATE(CTraffEduView, CView)
00018 
00019 BEGIN_MESSAGE_MAP(CTraffEduView, CView)
00020         // Standard printing commands
00021         ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
00022         ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
00023         ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
00024 END_MESSAGE_MAP()
00025 
00026 // CTraffEduView construction/destruction
00027 
00028 CTraffEduView::CTraffEduView()
00029 {
00030 }
00031 
00032 CTraffEduView::~CTraffEduView()
00033 {
00034 }
00035 
00036 BOOL CTraffEduView::PreCreateWindow(CREATESTRUCT& cs)
00037 {
00038         return CView::PreCreateWindow(cs);
00039 }
00040 
00041 // CTraffEduView drawing
00042 
00043 void CTraffEduView::OnDraw(CDC* /*pDC*/)
00044 {
00045         CTraffEduDoc* pDoc = GetDocument();
00046         ASSERT_VALID(pDoc);
00047         if (!pDoc)
00048                 return;
00049 }
00050 
00051 
00052 // CTraffEduView printing
00053 
00054 BOOL CTraffEduView::OnPreparePrinting(CPrintInfo* pInfo)
00055 {
00056         // default preparation
00057         return DoPreparePrinting(pInfo);
00058 }
00059 
00060 void CTraffEduView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
00061 {
00062 }
00063 
00064 void CTraffEduView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
00065 {
00066 }
00067 
00068 
00069 // CTraffEduView diagnostics
00070 
00071 #ifdef _DEBUG
00072 void CTraffEduView::AssertValid() const
00073 {
00074         CView::AssertValid();
00075 }
00076 
00077 void CTraffEduView::Dump(CDumpContext& dc) const
00078 {
00079         CView::Dump(dc);
00080 }
00081 
00082 CTraffEduDoc* CTraffEduView::GetDocument() const // non-debug version is inline
00083 {
00084         ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTraffEduDoc)));
00085         return (CTraffEduDoc*)m_pDocument;
00086 }
00087 #endif //_DEBUG
00088 
00089 
00090 // CTraffEduView message handlers

Generated on Sun May 28 18:54:09 2006 for TraffEdu by  doxygen 1.4.6-NO